//set each levels

void level_1(int play_area[][20]){
	int x, y;
   for(x=0;x<8;x++) play_area[x][0]=1;
   for(x=0;x<3;x++) for(y=1;y<4;y++) play_area[x][y]=1;
   for(x=4;x<8;x++) for(y=1;y<3;y++) play_area[x][y]=1;
   play_area[0][4]=1;play_area[7][3]=1;play_area[4][7]=1;
   for(x=0;x<4;x++) for(y=5;y<8;y++) play_area[x][y]=1;
   for(x=5;x<8;x++) for(y=4;y<8;y++) play_area[x][y]=1;
   play_area[3][2]=0;play_area[2][4]=0;play_area[4][4]=0;
   play_area[1][4]=3;play_area[3][1]=3;play_area[6][3]=3;play_area[4][6]=3;
   play_area[3][3]=2;play_area[5][3]=2;play_area[4][5]=2;play_area[3][4]=2;
   play_area[4][4]=8;
}

void level_2(int play_area[][20]){
	int x, y;
	for(x=0;x<10;x++) for(y=0;y<7;y++) if(x==0 || y==6 || y==0 || x==9) play_area[x][y]=1;
	for(x=1;x<9;x++) if(x==1 || x==7 || x==8) play_area[x][1] = 1;
	for(x=0;x<6;x++) play_area[x][2] = 1;
	for(x=4;x<9;x++) for(y=4;y<6;y++){ if(x==4 || x == 8) play_area[x][y]=1; }
	play_area[1][5]=1; play_area[2][2]=2; play_area[4][3]=2; play_area[7][3]=2;
	play_area[6][4]=2; play_area[2][4]=3; play_area[2][5]=3; play_area[3][4]=3;
	play_area[3][5]=3; play_area[2][3]=8;
}

void level_3(int play_area[][20]){
	int x,y;
	for(x=0;x<8;x++) for(y=0;y<8;y++) if(y==0 || y==7 || x==0 || x==7) play_area[x][y] = 1;
	for(y=1;y<5;y++){ play_area[1][y]=1; play_area[6][y]=1; }
	for(y=1;y<3;y++){ play_area[2][y]=1; play_area[5][y]=1; }
	play_area[5][5] = 2; play_area[3][4] = 2; play_area[4][3] = 2; play_area[4][5] = 2;
	play_area[3][1] = 3; play_area[4][1] = 3; play_area[4][2] = 3; play_area[5][3] = 3;
	play_area[3][5]=1; play_area[3][6] = 8;
}

void level_4(int play_area[][20]){
	int x,y;
	for(x=0;x<9;x++) play_area[x][0]=1;
	for(x=1;x<9;x++) play_area[x][6]=1;
	for(y=1;y<7;y++) play_area[0][y]=1;
	for(y=3;y<6;y++){ play_area[1][y]=1; play_area[8][y]=1;	} play_area[1][3]=0;
	play_area[6][3]=1; play_area[7][3]=1; play_area[3][3]=1;
	for(x=5;x<9;x++) {play_area[x][1]=1; play_area[x][2]=1;} 
	for(x=2;x<5;x++) play_area[x][2]=2;
	for(x=4;x<6;x++){ play_area[x][3]=3; play_area[x][4]=3; }
	play_area[6][4]=2; play_area[3][5]=8;
	
}

void level_5(int play_area[][20]){
	int x,y;
	for(x=0;x<7;x++) for(y=0;y<6;y++) if(x==0 || x==6 || y==0 || y==5) play_area[x][y]=1;
	for(x=1;x<5;x++) play_area[x][4]=3;
	play_area[5][3]=1; play_area[5][4]=1; play_area[1][2]=1;
	play_area[2][2]=2; play_area[4][2]=2; play_area[3][3]=2;
	play_area[4][3]=2; play_area[3][1]=8;
}
